﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VRacer;

namespace VRacer.Pages
{
    /// <summary>
    /// Interaction logic for MainMenu.xaml
    /// </summary>
    public partial class MainMenu : Page
    {
        public MainMenu()
        {
            InitializeComponent();
        }

        private void Button_Click_QuickGame(object sender, RoutedEventArgs e)
        {
            Business.Instance.Game = new QuickGame();
            NavigationService.Navigate(new Uri(@"Pages/Game.xaml", UriKind.Relative));
        }

        private void Button_Click_MultiGame(object sender, RoutedEventArgs e)
        {
            Business.Instance.Game = new LocalGame();
            //Business.Instance.Game.Add(new AIPlayer());
            NavigationService.Navigate(new Uri(@"Pages/MultiplayerPreferences.xaml", UriKind.Relative));
        }

        private void Button_Click_NetGame(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri(@"Pages/NetGame.xaml", UriKind.Relative));
        }

        private void Button_Click_Settings(object sender, RoutedEventArgs e)
        {

        }

        private void Button_Click_Help(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri(@"Pages/Instructions.xaml", UriKind.Relative));
        }

        private void Button_Click_Quit(object sender, RoutedEventArgs e)
        {
            App.Current.Shutdown();
        }

        private void Button_Click_Editor(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri(@"Pages/Editor.xaml", UriKind.Relative));
        }
    }
}
